
const _creatd = Symbol('_creatd');
const _error = Symbol('_error');
export default class UtilsCreateFrameAnima {
    constructor(_options, _that) {
        if (!_options) return this[_error]('no options?');
        if (!_that) return this[_error]('no this?');
        this[_creatd](_options, _that);
    }

    [_creatd](_options, _that) {
        _options.forEach(element => {
            _that.anims.create({
                key: element.key,
                frames: element.frames,
                frameRate:  element.frameRate,
                repeat: element.repeat
            })
        });
    }

    [_error](err) {
        throw err;
    }
};